package com.cskaoyan.bean.order.vo;

import com.cskaoyan.bean.order.Order;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 创建日期: 2022/05/06 19:37
 *
 * @author JinLu Zhou
 */
@Data
public class OrderDetailVo {
    private BigDecimal actualPrice;
    private Date addTime;
    private String address;
    private Short aftersaleStatus;
    private Short comments;
    private String consignee;
    private BigDecimal couponPrice;
    private Boolean deleted;
    private BigDecimal freightPrice;
    private BigDecimal goodsPrice;
    private BigDecimal grouponPrice;
    private Integer id;
    private BigDecimal integralPrice;
    private String message;
    private String mobile;
    private BigDecimal orderPrice;
    private String orderSn;
    private Short orderStatus;
    private String shipChannel;
    private String shipSn;
    private Date shipTime;
    private Date updateTime;
    private Integer userId;

    public void set(Order order){
        setActualPrice(order.getActualPrice());
        setAddTime(order.getAddTime());
        setAddress(order.getAddress());
        setAftersaleStatus(order.getAftersaleStatus());
        setComments(order.getComments());
        setConsignee(order.getConsignee());
        setCouponPrice(order.getCouponPrice());
        setDeleted(order.getDeleted());
        setFreightPrice(order.getFreightPrice());
        setGoodsPrice(order.getGoodsPrice());
        setGrouponPrice(order.getGrouponPrice());
        setId(order.getId());
        setIntegralPrice(order.getIntegralPrice());
        setMessage(order.getMessage());
        setMobile(order.getMobile());
        setOrderPrice(order.getOrderPrice());
        setOrderSn(order.getOrderSn());
        setOrderStatus(order.getOrderStatus());
        setShipChannel(order.getShipChannel());
        setShipSn(order.getShipSn());
        setShipTime(order.getShipTime());
        setUpdateTime(order.getUpdateTime());
        setUserId(order.getUserId());
    }
}
